package com.hopeedu.shop.admin.api;/**
 * Create By xbyang as 2019/8/9
 */

import com.hopeedu.shop.admin.service.SomeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @program: hopeedu-shop
 * @description:
 * @author: xbyang
 * @create: 2019-08-09 14:04
 **/
@RestController
@RequestMapping(value = "/feign")
public class SomeApi {

    @Autowired
    private SomeService someService;

    @GetMapping("/getSome")
    public String getSome(){
        return "通过Feign方式获得：" + someService.getSome("测试名称");
    }
}
